package com.gof.example.builder;

import com.gof.example.utils.XmlUtil;
import org.xml.sax.SAXException;

import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/4 09:59.
 * haiming.fei@tongdun.cn
 */
public class App {

    public static void main(String[] args) throws SAXException, IllegalAccessException, IOException, InstantiationException, ParserConfigurationException, ClassNotFoundException {
        RecallDisplayBuilder builder = XmlUtil.getBean(RecallDisplayBuilder.class);
        builder.setModel(new Model());
        Model model = builder.build();
        System.out.println(model);
    }
}
